package service.impl;

import dao.BaseDao;
import dao.MetaverseProductDao;
import dao.impl.MetaverseProductDaoImpl;
import entity.MetaverseProduct;
import service.MetaverseProductService;

import java.util.List;

public class MetaverseProductServiceImpl extends BaseDao implements MetaverseProductService {
    MetaverseProductDao metaverseProductDao = new MetaverseProductDaoImpl();

    @Override
    public List<MetaverseProduct> metaverseList() {
        return metaverseProductDao.metaverseList();
    }

    @Override
    public int metaverseAdd(MetaverseProduct metaverseProduct) {
        return metaverseProductDao.metaverseAdd(metaverseProduct);
    }

    @Override
    public int metaverseUpdate(int id, int flag) {
        return metaverseProductDao.metaverseUpdate(id,flag);
    }

    @Override
    public int metaverseDelete(int id) {
        return metaverseProductDao.metaverseDelete(id);
    }
}
